package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.core.domain.entity.AppUser;

import java.util.List;

/**
 * 用户表 数据层
 *
 * @author ruoyi
 */
public interface AppUserMapper extends BaseMapper<AppUser> {
    /**
     * 通过用户名查询用户
     *
     * @param userName 用户名
     * @return 用户对象信息
     */
    AppUser selectAppUserByUserName(String userName);

    AppUser selectAppUserByOpenId(String openId);

    AppUser selectAppUserByMobile(String mobile);

    AppUser selectAppUserById(Long userId);

    int insertAppUser(AppUser appUser);

    /**
     * 修改用户信息
     *
     * @param appUser 用户信息
     * @return 结果
     */
    int updateAppUser(AppUser appUser);

    public List<AppUser> selectAppUserList(AppUser appUser);

    public List<AppUser> selectAllAppUserList();

    public List<AppUser> selectAllAppUserListByMobile(AppUser appUser);

    public List<AppUser> selectAppUserListByIds(String ids);

    public int deleteAppUserByIds(Long[] userIds);

}